package com.x.ant.model;


import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

@MappingTable(tableName = "CRM_USER_ORG")
public class UserOrg extends BaseObject {
    @MappingColumn(columnName = "USER_ID", columnPk = true, columnLength = 32)
    private String userId;
    @MappingTable(tableName = "CRM_USER")
    private User user;
    @MappingColumn(columnName = "ORG_ID")
    private String orgId;
    @MappingTable(tableName = "CRM_ORG")
    private Dept org;

    public UserOrg() {

    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public Dept getOrg() {
        return org;
    }

    public void setOrg(Dept org) {
        this.org = org;
    }
}
